#include <iostream>
using namespace std;

int find(int n)
{
    int a = 0, b = 1, c;
    if (n == 0)
    {
        return a;
    }
    for (int i = 2; i <= n; i++)
    {
        c = a + b;
        a = b;
        b = c;
    }
    return b;
}
int main()
{
    int n = 10;
    cout << "斐波那契数列第10位数是:" << find(n) << endl;
    return 0;
}